#define _CRT_SECURE_NO_WARNINGS 1

struct AB
{
	int A;
	char c;
	int num[12];
	double e;
};
#include<stdio.h>
#define OFFSETOF(type, member) ((size_t)(&((type *)0)->member))

int main() 
{
    size_t offset = OFFSETOF(struct AB, e);
	printf("Offset of 'e': %zu bytes\n", offset);

    return 0;
}